package cn.bigfire.compiler.dragon.appendixA.handwrite.inter;

import cn.bigfire.compiler.dragon.appendixA.handwrite.lexer.Token;

public class And extends Logical {


    public And(Token token, Expr expr1, Expr expr2) {
        super(token, expr1, expr2);
    }

    public void jumping(int t, int f) {
        int label = t != 0 ? f : newLabel();
        expr1.jumping(0, label);
        expr2.jumping(t, f);
        if (f == 0) {
            emitLabel(label);
        }
    }

}
